projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d459c4
)
(viper-skip-syntax): Bug fix for eob/bob cases.
author
Karl Heuer
<kwzh@gnu.org>
Sat, 30 May 1998 14:29:25 +0000
(14:29 +0000)
committer
Karl Heuer
<kwzh@gnu.org>
Sat, 30 May 1998 14:29:25 +0000
(14:29 +0000)
lisp/emulation/viper-util.el
patch
|
blob
|
history
diff --git
a/lisp/emulation/viper-util.el
b/lisp/emulation/viper-util.el
index 6cad4511d28a68b164ddecb4edf934d6040f422f..111edd10b6ab8b5ab3931f92a80f07280127ddc4 100644
(file)
--- a/
lisp/emulation/viper-util.el
+++ b/
lisp/emulation/viper-util.el
@@
-1295,7
+1295,10
@@
This option is appropriate if you like Emacs-style words."
(t nil)))
(if (memq ?^ syntax) (setq negated-syntax t))
- (while (and (not (= local 0)) (not (eobp)))
+ (while (and (not (= local 0))
+ (cond ((eq direction 'forward)
+ (not (eobp)))
+ (t (not (bobp)))))
(setq char-looked-at (viper-char-at-pos direction)
;; if outside the range, set to nil
syntax-of-char-looked-at (if char-looked-at